package com.mq.springcloud.service;


import com.mq.springcloud.entity.Payment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.mq.springcloud.dao.PaymentDaos;

import javax.annotation.Resource;


@Service
@Slf4j
public class PaymentServiceImpl implements PaymentService{

    @Resource
    private PaymentDaos paymentDaos;

    public int create(Payment payment){
        return paymentDaos.create(payment);
    }
    public Payment getPaymentById(Long id){
        log.info("进入Controller");
        return paymentDaos.getPaymentById(id);
    }

}
